// 代码中会兼容本地 service mock 以及部署站点的静态数据
export default {
  // 支持值为 Object 和 Array
  'GET /api/carList': {
    code: 0,
    responseTime: '2019-03-28 11:40:29',
    data: {
      list: {
        pageNum: 1,
        pageSize: 10,
        size: 1,
        startRow: 1,
        endRow: 1,
        total: 1,
        pages: 1,
        list: [
          {
            id: '37552577210363904',
            ownCompanyName: '海晨',
            ownCompanyId: '12312',
            cartPlateOneType: '湘',
            cartPlateOneNo: '12313',
            cartPlateTwoType: '湘',
            cartPlateTwoNo: '12313',
            typeName: '车头',
            cartTypeName: '集装箱半挂车',
            brandModel: 'SCANIA',
            coach: "FCL 40'",
            beActive: false,
          },
        ],
        prePage: 0,
        nextPage: 0,
        isFirstPage: true,
        isLastPage: true,
        hasPreviousPage: false,
        hasNextPage: false,
        navigatePages: 8,
        navigatepageNums: [1],
        navigateFirstPage: 1,
        navigateLastPage: 1,
        firstPage: 1,
        lastPage: 1,
      },
    },
    messageStr: '成功',
  },
  'POST/api/hibase-admin/vms-vehicle/selectList': (req, res) => {
    res.send({
      code: 0,
      responseTime: '2019-03-25 14:35:24',
      data: {
        list: {
          records: [
            {
              id: '1111',
              ownCompanyName: '111',
              ownCompanyId: '111',
              cartPlateOneType: '111',
              cartPlateOneNo: null,
              cartPlateTwoType: null,
              cartPlateTwoNo: null,
              typeName: null,
              cartTypeName: null,
              brandModel: null,
              coach: null,
              beActive: null,
            },
            {
              id: '222',
              ownCompanyName: '222',
              ownCompanyId: '2222',
              cartPlateOneType: '2222',
              cartPlateOneNo: null,
              cartPlateTwoType: null,
              cartPlateTwoNo: null,
              typeName: null,
              cartTypeName: null,
              brandModel: null,
              coach: null,
              beActive: null,
            },
            {
              id: '36177779179794432',
              ownCompanyName: '海晨',
              ownCompanyId: '12312',
              cartPlateOneType: '湘',
              cartPlateOneNo: '12313',
              cartPlateTwoType: '湘',
              cartPlateTwoNo: '12313',
              typeName: '车头',
              cartTypeName: '集装箱半挂车',
              brandModel: 'SCANIA',
              coach: "FCL 40'",
              beActive: 'Y',
            },
            {
              id: '37137439525318656',
              ownCompanyName: '海晨',
              ownCompanyId: '12312',
              cartPlateOneType: '湘',
              cartPlateOneNo: '234',
              cartPlateTwoType: '湘',
              cartPlateTwoNo: '42341',
              typeName: '车头',
              cartTypeName: '集装箱半挂车',
              brandModel: 'SCANIA',
              coach: "FCL 40'",
              beActive: 'Y',
            },
          ],
          total: 4,
          size: 10,
          current: 1,
          searchCount: true,
          pages: 1,
        },
      },
      messageStr: '成功',
    });
  },
};
